from flask import Flask,url_for,redirect

app = Flask(__name__)

@app.route('/')
def index():
    return redirect(url_for('login'))

@app.route('/login')
def login():
    return "Welcome to login page!"


"""
127.0.0.1 - - [31/Aug/2021 21:54:37] "GET / HTTP/1.1" 302 -
127.0.0.1 - - [31/Aug/2021 21:54:37] "GET /login HTTP/1.1" 200 -
"""